package com.atguigu.gmall.cart.controller;

import java.math.BigDecimal;

/**
 * @Author:南宫乘风
 * @Date:2019/11/27 17:22
 */
public class TestBigDecimal {

    public static void main(String[] args) {
        //初始化
        BigDecimal b1 = new BigDecimal(0.01f);//float
        BigDecimal b2 = new BigDecimal(0.01d);//
        BigDecimal b3 = new BigDecimal("0.01");
        System.out.println(b1);
        System.out.println(b2);
        System.out.println(b3);
        //比较

        //运算

        //约数


    }
}
